from django.db import models


class Syndic(models.Model):
    id_syndic = models.IntegerField(primary_key=True)
    id_rubrique = models.IntegerField()
    id_secteur = models.IntegerField()
    nom_site = models.TextField()
    url_site = models.TextField()
    url_syndic = models.TextField()
    descriptif = models.TextField()
    url_propre = models.CharField(max_length=765)
    idx = models.CharField(max_length=9)
    maj = models.DateTimeField()
    syndication = models.CharField(max_length=9)
    statut = models.CharField(max_length=30)
    date = models.DateTimeField()
    date_syndic = models.DateTimeField()
    date_index = models.DateTimeField()
    extra = models.TextField(blank=True)
    moderation = models.CharField(max_length=9, blank=True)
    miroir = models.CharField(max_length=9, blank=True)
    oubli = models.CharField(max_length=9, blank=True)
    resume = models.CharField(max_length=9, blank=True)
    class Meta:
        db_table = u'spip_syndic'

class SyndicArticle(models.Model):
    id_syndic_article = models.IntegerField(primary_key=True)
    id_syndic = models.IntegerField()
    titre = models.TextField()
    url = models.CharField(max_length=765)
    date = models.DateTimeField()
    lesauteurs = models.TextField()
    maj = models.DateTimeField()
    statut = models.CharField(max_length=30)
    descriptif = models.TextField()
    lang = models.CharField(max_length=30)
    url_source = models.TextField()
    source = models.TextField()
    tags = models.TextField()
    class Meta:
        db_table = u'spip_syndic_articles'
